<html>
    <head>

    </head>
    <body>
        <script>
            var d1=new Date();

            document.write(d1.toString());
            document.write("<br />");
            document.write(d1.toLocaleDateString());

            document.write("<br />");
            document.write(d1.toDateString());
            document.write("<br />");
            document.write(d1.toTimeString());
            document.write("<br />");


            document.write("<br />");
            document.write(d1.toLocaleDateString());
            document.write("<br />");
            document.write(d1.toLocaleTimeString());
            document.write("<br />");
        </script>
    </body>
</html>